package com.chenyue.cm.common.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 金币签到记录
 * </p>
 *
 * @author Lbx
 * @since 2021-10-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "JdGoldSign对象", description = "金币签到记录")
public class JdGoldSign extends Model<JdGoldSign> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "签到总天数")
    private Integer total;

    @ApiModelProperty(value = "当前连续天数")
    private Integer current;

    @ApiModelProperty(value = "上次签到时间")
    @TableField(fill = FieldFill.INSERT)
    private Date ct;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
